const step = 2000;

new Promise(resolve => {
    setTimeout(() => {
        resolve(new Date())
    }, step)
}).then(value => {
    console.log(value);
})

fetch('/search/relative_project?q=gulp').then(value => value.json()).then(res => {
    console.log(res)
})